package adapter;

/**
 * @功能
 * @创建时间 2020/5/3
 * 对象组合方式
 */
public class Adapter2 implements Target {

    public Adapter2(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    public void setAdaptee(Adaptee adaptee) {
        this.adaptee =adaptee;

    }

    private Adaptee adaptee;
    @Override
    public void handelReq() {
        adaptee.request();
    }
}
